package com.sysware.mymodule.repository;

import com.sysware.mymodule.dto.DataObjectDTO;
import com.sysware.mymodule.entity.DataObject;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.repository.PagingAndSortingRepository;

import java.util.List;

public interface DataObjectRepository extends PagingAndSortingRepository<DataObject, String> {

    Page<DataObject> findByNameLike(String name, Pageable pageable);

}
